<template>
  <div id="app">
    <p>请选择你喜欢的专栏</p>
    <input v-model="loveCol" type="checkbox" value="科幻" />科幻 <input v-model="loveCol" type="checkbox" value="喜剧" />喜剧 <input v-model="loveCol" type="checkbox" value="动漫" />动漫
    <input v-model="loveCol" type="checkbox" value="冒险" />冒险 <input v-model="loveCol" type="checkbox" value="科技" />科技 <input v-model="loveCol" type="checkbox" value="军事" />军事
    <input v-model="loveCol" type="checkbox" value="娱乐" />娱乐 <input v-model="loveCol" type="checkbox" value="奇闻" />奇闻

    <ul>
      <li v-for="item in loveCol" :key="item">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      //   loveCol: ['科幻', '喜剧', '动漫', '冒险', '科技', '军事', '娱乐', '奇闻']
      loveCol: []
    }
  },
  methods: {}
}
</script>

<style scoped></style>
